<?php if( isset( $flashes ) && !empty( $flashes ) ): ?>
    <?php if( $flashes[FlashesVars::LEVEL] == FlashesVars::INFO ): ?>
    <div class="ui-widget">
        <div class="ui-state-highlight ui-corner-all" style="margin-top: 20px; padding: 0 .7em;">
            <p><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;">&nbsp;</span>
            <?php echo $flashes[FlashesVars::MESSAGE];?></p>
        </div>
    </div>
    <?php elseif( $flashes[FlashesVars::LEVEL] == FlashesVars::ERROR ) :?>
    <div class="ui-widget">
        <div class="ui-state-error ui-corner-all" style="padding: 0 .7em;">
            <p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;">&nbsp;</span>
            <?php echo $flashes[FlashesVars::MESSAGE], isset($globalErrors) ? $globalErrors : '';?></p>
        </div>
    </div>
    <?php endif; ?>
<?php endif; ?>